package com.hyz.service.repositoryManager.impl;

import com.hyz.mapper.repository.RepositoryMapper;
import com.hyz.pojo.repository.Repository;
import com.hyz.service.repositoryManager.RepositoryManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/1 10:47
 */
@Service
public class RepositoryManagerServiceImpl implements RepositoryManagerService {
    @Autowired
    private RepositoryMapper repositoryMapper;

    @Override
    public List<Repository> getAllRepositories() {
        return repositoryMapper.getAllRepositories();
    }

    @Override
    public List<Repository> getChargeRepository(Long repositoryManagerId) {
        return repositoryMapper.getChargeRepository(repositoryManagerId);
    }
}
